package com.example.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.bean.Borrow;
import com.example.bean.Course;
import com.example.service.BorrowService;
import com.example.mapper.BorrowMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author wjf
* @description 针对表【borrow】的数据库操作Service实现
* @createDate 2022-10-12 09:43:07
*/
@Service
public class BorrowServiceImpl extends ServiceImpl<BorrowMapper, Borrow> implements BorrowService{

    @Resource
    private BorrowMapper borrowMapper;


    @Override
    public IPage<Borrow> findPage(IPage<Borrow> page, Integer id, String bookName, String userName) {
        IPage<Borrow> borrowIPage =  borrowMapper.findPage(page,id,bookName,userName);
        return borrowIPage;
    }
}




